package com.cn.bopu.common.upms;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * spring boot 核心启动类
 *
 * @SpringBootApplication spring boot 启动核心注解
 * @EnableDiscoveryClient 开启Spring Cloud的服务注册与发现，由于这里引入了spring-cloud-starter-alibaba-nacos-discovery模块，所以Spring Cloud Common中定义的那些与服务治理相关的接口将使用Nacos的实现
 * @EnableSwagger2Doc Swagger2 自动生产API文档
 * @MapperScan mybatis 扫描路径
 *
 * @author 史绍波
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableSwagger2Doc
@MapperScan("com.cn.common.upms.*.mapper")
public class BopuCommonUpmsServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(BopuCommonUpmsServerApplication.class, args);
    }

}
